package com.stlm2.dems.user.entity.base;

import com.stlm2.dems.user.entity.AccountState;
import com.stlm2.dems.user.entity.AccountType;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by apple on 2017/5/23.
 */
public class BaseAccount {
  private   Integer id;
  private   Integer userId;
  private  BigDecimal accountMoney;
  private   String password;
  private   String accountKey;
  private   AccountState accountState;
  private   Integer operateUserId;
  private   Date operateTime;
  private   AccountType accountType;
  private  BigDecimal remainJiFen;
  private  BigDecimal totalJiFen;
  private  BigDecimal reducedJiFen;



    public BigDecimal getRemainJiFen() {
        return remainJiFen;
    }

    public void setRemainJiFen(BigDecimal remainJiFen) {
        this.remainJiFen = remainJiFen;
    }

    public BigDecimal getTotalJiFen() {
        return totalJiFen;
    }

    public void setTotalJiFen(BigDecimal totalJiFen) {
        this.totalJiFen = totalJiFen;
    }

    public BigDecimal getReducedJiFen() {
        return reducedJiFen;
    }

    public void setReducedJiFen(BigDecimal reducedJiFen) {
        this.reducedJiFen = reducedJiFen;
    }




    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public BigDecimal getAccountMoney() {
        return accountMoney;
    }

    public void setAccountMoney(BigDecimal accountMoney) {
        this.accountMoney = accountMoney;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAccountKey() {
        return accountKey;
    }

    public void setAccountKey(String accountKey) {
        this.accountKey = accountKey;
    }

    public AccountState getAccountState() {
        return accountState;
    }

    public void setAccountState(AccountState accountState) {
        this.accountState = accountState;
    }

    public Integer getOperateUserId() {
        return operateUserId;
    }

    public void setOperateUserId(Integer operateUserId) {
        this.operateUserId = operateUserId;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public AccountType getAccountType() {
        return accountType;
    }

    public void setAccountType(AccountType accountType) {
        this.accountType = accountType;
    }



    /**
     * 映射：账户状态
     */
    public Integer getAccountStateValue() {
        return this.accountState != null ? this.accountState.getIntValue() : null;
    }

    public void setAccountStateValue(Integer value) {
        if (value != null) {
            this.accountState = AccountState.getByIntValue(value);
        }
    }

    /**
     * 映射：账户状态
     */
    public Integer getAccountTypeValue() {
        return this.accountType != null ? this.accountType.getIntValue() : null;
    }

    public void setAccountTypeValue(Integer value) {
        if (value != null) {
            this.accountType = AccountType.getByIntValue(value);
        }
    }



}
